<?php

/**
 * @author MFerreira
 * @version 1.0
 * @created 02-dic-2010 10:14:26 a.m.
 */
class PeriodoAcademico {
    
    /**
     *
     * @param int $ano
     * @param int $periodo
     * @return PeriodoAcademico 
     */
    public static function newInstance($ano, $periodo){
        $newInstance = new PeriodoAcademico();
        $newInstance->setAno($ano);
        $newInstance->setPeriodo($periodo);
        
        return $newInstance;
    }

    private $Ano = 2012;
    private $Periodo = 2;

    public function getAno() {
        return $this->Ano;
    }

    public function setAno($Ano) {
        $this->Ano = $Ano;
    }

    public function getPeriodo() {
        return $this->Periodo;
    }

    public function setPeriodo($Periodo) {
        $this->Periodo = $Periodo;
    }

    public function toString() {
        return "$this->Ano-$this->Periodo";
    }

    public function __toString() {
        return $this->toString();
    }

}

?>